package cn.zyjw.mapper;

import cn.zyjw.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT `id`,`password`, `status` FROM `user` WHERE mobile = #{param} or email = #{param} ")
    User queryMemberByNameOrMobile(String param);
}
